package com.ticket.sass.common.entity.tenant;

import com.baomidou.mybatisplus.annotation.*;
import com.ticket.sass.common.entity.tenant.enums.OrderPayStatus;
import com.ticket.sass.common.entity.tenant.enums.OrderPayType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("shop_order_details")
public class ShopOrderDetailEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long goodsId;
    private String goodsName;
    private String goodsCover;
    private BigDecimal originalPrice;
    private BigDecimal payPrice;
    private Long goodsNum;



    private Long userId;
    private Long cinemaId;
    private Long tenantId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableField(select = false)
    @ApiModelProperty(value = "删除时间")
    @TableLogic(value = "null", delval = "now()")
    private LocalDateTime deletedAt;
}
